package com.wgchao.identityrightsmanagement.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;

/**
 * @ClassName: SysResourceFunction
 * @author: wgchao
 * @createTime: 2020/6/18 10:51 AM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "sys_resource_function", uniqueConstraints = @UniqueConstraint(columnNames = {"menu_mark","func_mark"}))
@Entity
public class SysResourceFunction implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id" )
    private Long id;

    @Column(name = "menu_mark" , length = 50)
    private String menuMark;

    @Column(name = "func_mark" , length = 50)
    private String funcMark;

    @Column(name = "func_name" , length = 50)
    private String funcName;

    @Version
    private Long version;

}
